package com.essence.grabiec104.grab.model;

import com.essence.common.model.BytesFrame;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
public class YKComparison {
    private List<String> slaveStations = new ArrayList<>();
    private long timestamp;

    @Data
    static public class YKComparisonItem {
        private int commonAddress;
        private long timestamp;
        private int tieIdentificationIndex;
        private String tieIdentification;
        private int causeIndex;
        private String cause;
        private int pointAddress;
        private int value;
        private int iv;
        private int direction; // 0 upstream, 1 downstream
    }

    private Map<String, List<YKComparisonItem>> itemsGroupBy = new HashMap<>();
}
